<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ include file="taglibs.jsp"%>
<%
String path = request.getContextPath();
//String port = "8443";
//String scheme = "https";//修改默认的协议名称http为https
//String basePath = scheme+"://"+request.getServerName()+":"+port+path+"/";
//String basePath = scheme+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>POS收单运营管理平台</title>
	<link href="<s:url value="/css/TabPanel.css"/>" rel="stylesheet" type="text/css"/>
	<style type="text/css"  >
	html, body { 
		width : 100%;
		height : 100%;
		padding : 0; 
		margin : 0px; 
		overflow : hidden;
		font-family:"Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif; /* MAIN BODY FONTS */
	}
	.jcTab { width:100%; height:100%;}
	</style>
	<script type="text/javascript" src="<s:url value="/js/jquery-1.9.1.js" />"></script>
	<script type="text/javascript" src="<s:url value="/js/tabcontrol/Fader.js" />"></script>
	<script type="text/javascript" src="<s:url value="/js/tabcontrol/TabPanel.js" />"></script>
	<script type="text/javascript" src="<s:url value="/js/tabcontrol/Math.uuid.js" />"></script>
	<script type="text/javascript" language="javascript">
		
		var tabpanel; 
		
		
		$(document).ready(function(){  
			var widthnum=$(window).width()-1;
			var heightnum=$(window).height()-1;
		
		
			tabpanel = new TabPanel({  
				renderTo:'tab',  
				width:widthnum,  
				height:heightnum,  
				//border:'none',  
				active : 0,
				//maxLength : 10,  
				items : [
					{id:'toolbarPlugin0',title:'公告',html:'<iframe src="<%=basePath %>/announce/announcementInit.ct" width="100%" height="100%" frameborder="0"></iframe>',closable: false}
				]
			}); 
		});
		
		function addtabs(idnum,titlename,htmlcontent) {
			var content = "<iframe src="+htmlcontent+" width='100%' height='100%' frameborder='0'></iframe>";
			tabpanel.addTab({id:idnum,title:titlename,html:content,closable: true});
		}
	</script>
</head>

<body>
    <div id="tab"></div>
   
</body>
</html>
